package org.nanhill.moo.dao;

import java.util.List;

import org.nanhill.moo.domain.Category;

public interface CategoryDao {

	/**
	 * @param name
	 * @return
	 */
	Category findByName(String name);

	/**
	 * @return
	 */
	List<Category> findRootChilds();

	/**
	 * @param cid
	 * @return
	 */
	Category findById(Long cid);

}
